<%@page import="forms.ApplicantFormInsert"%>
<%@page import="java.util.*" %>

<%@ page import="javax.sql.*"%>
<%@ page language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@page import="forms.DegreeFormInsert" %>
<html:html>
<head>
	<title>Verification</title>
</head>
<body>
Please verify the information you have submitted:
<BR>


Name:
	<bean:write name="applicantFormInsert" property="firstname" scope="session" />
	<bean:write name="applicantFormInsert" property="middle"    scope="session" />
	<bean:write name="applicantFormInsert" property="lastname"  scope="session" />
<BR>
Citizenship:
	<bean:write name="applicantFormInsert" property="citizenship" scope="session" />
<BR>
Country of Residence:
	<bean:write name="applicantFormInsert" property="residence" scope="session" />
<BR>

Address:
	<bean:write name="applicantFormInsert" property="street" scope="session" />
	<bean:write name="applicantFormInsert" property="city" scope="session" />
	<bean:write name="applicantFormInsert" property="state" scope="session" />
	<bean:write name="applicantFormInsert" property="zipocde" scope="session" />
<BR>

Telephone:
	<bean:write name="applicantFormInsert" property="telephonecode" scope="session" />
	<bean:write name="applicantFormInsert" property="areacode" scope="session" />
	<bean:write name="applicantFormInsert" property="number" scope="session" />


Education: <p>
<%
ArrayList<DegreeFormInsert> degrees = (ArrayList<DegreeFormInsert>)session.getAttribute("degrees");
Iterator<DegreeFormInsert> itr = degrees.iterator();
DegreeFormInsert form = null;
while (itr.hasNext()) {
	form = itr.next();
 	out.print(form.getUniversity()+",");
 	out.print(form.getDiscipline()+",");
 	out.print(form.getMonth()+",");
 	out.print(form.getYear()+",");
 	out.print(form.getGpa()+",");
 	out.print(form.getTitleofdegree()+","+"<BR>");
 	
	} %>

<BR>
Specialization:
<bean:write name="applicantFormInsert" property="specialization" scope="session" />

<html:form method="POST" action="/insertStudent">
	<html:submit>Submit</html:submit>
</html:form>

	<html:form method="POST" action="/cancel">
	<html:submit>Cancel</html:submit>
</html:form> 

</body>
</html:html>



